﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;

namespace IDb
{
    public interface IExpressCompany
    {
        /// <summary>
        /// 新增快递公司
        /// </summary>
        /// <param name="entity"></param>
        bool Save(ExpressCompany entity);

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="entity"></param>
        bool Update(ExpressCompany entity);

        /// <summary>
        /// 根据编号删除快递公司
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool Delete(string id);

        /// <summary>
        /// 删除快递公司
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        bool Delete(ExpressCompany entity);

        /// <summary>
        /// 获取全部快递公司
        /// </summary>
        /// <returns></returns>
        IList<ExpressCompany> GetAll();

        /// <summary>
        /// 根据编号获取数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ExpressCompany GetOneById(string id);
    }
}
